package com.good.cms.admin.client;

import com.good.cms.admin.vo.Content;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @package: com.good.cms.admin.client
 * @description:
 * @author: cuiP
 * @date: 2018/1/8 16:30
 * @version: V1.0.0
 */
@FeignClient(value = "good-cms-serve", fallback = ContentHystrix.class)
public interface ContentClient {

    @GetMapping("/cms/contents")
    List<Content> findAll();
}
